package com.project.bean;

import java.time.LocalDate;

/**
 * 学生实体类
 */
public class StudentBean {
    /**学生编号*/
    private int id;
    /**学生姓名*/
    private String name;
    /**学生性别*/
    private String sex;
    /**联系电话*/
    private String phone;
    /**学生头像*/
    private String image;
    /**入住时间，默然当前时间*/
    private LocalDate date = LocalDate.now();
    /**班级对象*/
    private ClassBean stuClass;
    /**房间对象*/
    private RoomBean stuRoom;

    public StudentBean() {
    }

    public StudentBean(String name, String phone, ClassBean stuClass) {
        this.name = name;
        this.phone = phone;
        this.stuClass = stuClass;
    }

    public StudentBean(String name, String sex, String phone, String image,
                       ClassBean stuClass, RoomBean stuRoom) {
        this.name = name;
        this.sex = sex;
        this.phone = phone;
        this.image = image;
        this.stuClass = stuClass;
        this.stuRoom = stuRoom;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public LocalDate getDate() {
        return date;
    }

    public void setDate(LocalDate date) {
        this.date = date;
    }

    public ClassBean getStuClass() {
        return stuClass;
    }

    public void setStuClass(ClassBean stuClass) {
        this.stuClass = stuClass;
    }

    public RoomBean getStuRoom() {
        return stuRoom;
    }

    public void setStuRoom(RoomBean stuRoom) {
        this.stuRoom = stuRoom;
    }

    @Override
    public String toString() {
        return "StudentBean{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", sex='" + sex + '\'' +
                ", phone='" + phone + '\'' +
                ", image='" + image + '\'' +
                ", date=" + date +
                ", stuClass=" + stuClass +
                ", stuRoom=" + stuRoom +
                '}'+"\n";
    }
}
